A component alias is contained in a resource of type kComponentAliasResourceType . This resource contains the following data structure:
struct ComponentAliasResource {
ComponentResource cr; /* registration parameters */
ComponentDescription aliasCD;/* target description */
};
The cr field is a ComponentResource structure that contains information needed to register the component. This information is used in the same way as registration information for ordinary components, with one exception: the specification of the code resource for the component is ignored.
The aliasCD field is a ComponentDescription structure that specifies the target for the alias. To resolve a component alias, the Component Manager passes the contents of the aliasCD field of the ComponentAliasResource structure to the FindNextComponent function, just as an application would. This field includes all the information that is necessary to specify the target component. The code resource of the target is used in place of the code resource specified in the cr field of the ComponentAliasResource structure.